input_string = input('Please input a string: \n')

numbers_of_letters = 0
numbers_of_digit = 0
numbers_of_spaces = 0
numbers_of_other_characters = 0

# letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase_letters = [chr(i) for i in range(ord('a'), ord('z')+1, 1)]
uppercase_letters = [chr(i) for i in range(ord('A'), ord('Z')+1, 1)]
letters = lowercase_letters + uppercase_letters
digits = "0123456789"
spaces = " "

for i in input_string:
    if i in letters: numbers_of_letters += 1
    elif i in digits: numbers_of_digit += 1
    elif i in spaces: numbers_of_spaces += 1
    else: numbers_of_other_characters += 1

print('numbers_of_letters:         ', numbers_of_letters)
print('numbers_of_digit:           ', numbers_of_digit)
print('numbers_of_spaces:          ', numbers_of_spaces)
print('numbers_of_other_characters:', numbers_of_other_characters)
